package com.va1m.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author Admin
 * t_record的实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_record")
public class Record {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 消费时间
     */
    @TableField(value = "time")
    private Date date;
    /**
     * 消费金额
     */
    @TableField(value = "amount")
    private BigDecimal amount;
    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Integer userId;

}
